package com.jweb.framework.core.service;

public class DefaultServiceHolder implements ServiceHolder {
	
	private String name ;
	private Class<?>[] types ;
	private Object service ;
	
	public DefaultServiceHolder(String name , Class<?>[] types , Object service){
		this.name = name ;
		this.types = types ;
		this.service = service ;
	}
	
	public String getName(){
		return this.name ;
	}
	
	public <T> T getService(){
		return (T)this.service ;
	}
	
	public Class<?>[] getTypes(){
		return this.types ;
	}
	
}
